package com.zenithmind.library.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import lombok.Data;

/**
 * 图书评价更新DTO
 * 
 * @author ZenithMind
 * @since 2024-06-14
 */
@Data
@Schema(name = "图书评价更新DTO", description = "更新图书评价时的数据传输对象")
public class BookReviewUpdateDTO {

    @Min(value = 1, message = "评分不能小于1")
    @Max(value = 5, message = "评分不能大于5")
    @Schema(description = "评分 (1-5)", example = "5")
    private Integer rating;

    @Schema(description = "评价内容", example = "这本书很不错，内容丰富，值得推荐！")
    private String reviewContent;

    @Schema(description = "是否匿名 (0-否, 1-是)", example = "0")
    private Integer isAnonymous;

    @Schema(description = "状态 (0-隐藏, 1-显示)", example = "1")
    private Integer status;
}
